# 在cmd命令行窗口运行：pip install pyttsx3
import pyttsx3

engine = pyttsx3.init('sapi5')
newVoiceRate = 130
engine.setProperty('rate', newVoiceRate)
engine.setProperty('voice', 'zh')


def speak(audio):
    engine.say(audio)
    engine.runAndWait()


text = str(input("请输入内容：\n"))
speak(text)
